import React from "react";
import { useSelector, useDispatch } from "react-redux";
import { setTokenWallet } from "../../redux/slice/balanceSlice";

function Balance() {
  const { TokenWallet, TokenExchange, EtherWallet, EtherExchange } =
    useSelector((state) => state.balance);
  return (
    <div>
      <h1>钱包中以太币：</h1>
      {TokenWallet}
      <h1>钱包中WKT：</h1>
      {TokenExchange}
      <h1>交易所中以太币：</h1>
      {EtherWallet}
      <h1>交易所中WKT：</h1>
      {EtherExchange}
    </div>
  );
}

export default Balance;
